#! /bin/bash

# Author: Huoty <sudohuoty@163.com>
# CreateTime: 2021-01-04 15:21:51
# Script starts from here:

CURRENT_DIR=`pwd`
OLD_GO_PATH="$GOPATH"  # 例如: /usr/local/go
OLD_GO_BIN="$GOBIN"    # 例如: /usr/local/go/bin

export GOPATH="$CURRENT_DIR"
export GOBIN="$CURRENT_DIR/bin"

#指定并整理当前的源码路径
gofmt -w src

go install test_hello

export GOPATH="$OLD_GO_PATH"
export GOBIN="$OLD_GO_BIN"
